package cn.kgc.mapper;

import cn.kgc.bean.pojo.EpAnswer;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EpAnswerMapper {
    /**
     * @description 新增员工安全培训问卷答案
     * @author panchongxin
     * @param epAnswer:
     * @return int
     * @date 2023/5/5 22:30
     */
    int addAnswer(EpAnswer epAnswer);

    /**
     * @description 根据问卷id和回答员工姓名查询回答答案
     * @author panchongxin
     * @param questionInfoId:
     * @return List<String>
     * @date 2023/5/5 23:46
     */
    List<String> getAllAnswerByQuestionInfoIdAndCreator(@Param("questionInfoId") Integer questionInfoId,
                                                        @Param("creator") String creator);
}
